package edu.sctu.zhangwang.month201505.day20150525;

/**
 * Created by Administrator on 2015/5/25 0025.
 */
public class Truck1 extends CheShuXin{
    double tonnage;
    private int rentDays;
    private double rentPrice;

    public Truck1(String number, String type, double value,double tonnage) {
        super(number, type, value);
        this.tonnage = tonnage;
    }

    public double getTonnage(){
        return tonnage;
    }
    public void setRentDay(int rentDays){
        this.rentDays = rentDays;
    }
    public int getRentDay(){
        return rentDays;
    }
    void calcuRentPrice(){
        this.rentPrice = super.rentPrice+value*10;
    }
    public double getRentPrice(){
        return rentPrice;
    }
    public void printOtherIfo(){
        System.out.println();
        System.out.print("租车天数：" + getRentDay());
        System.out.print("\t租车单价："+getRentPrice());
        System.out.println("\t租金："+rent);
    }
}
